﻿<?xml version="1.0" encoding="utf-8" ?>
<CardPageMetadata Name="Lead" Type="Card" LinkTable="Lead" PrefixKey="">
  <Scripts>
    <ClientScript Name="ClearAssignedGroup" InputParams="">
      <![CDATA[
        document.getElementById("AssignedGroup").value="";
      ]]>
    </ClientScript>
    <ClientScript></ClientScript>
    <ServerScript Name="BeforeSave" InputParams=""></ServerScript>
    <ServerScript Name="AfterSave" InputParams=""></ServerScript>
  </Scripts>
  <FieldGroup Name="Main Information">
    <Field Name="No" Type="text" Label="Lead No" Required="true" Enabled="false" FieldValue="" DataType="decimal" FieldLength="999">
      <Languages>
        <Language Name="en-US" Label="No"/>
        <Language Name="nl-NL" Label="No."/>
      </Languages>
    </Field>
    <Field Name="Saluation" Type="text" Label="Saluation" Required="true" Enabled="true" FieldValue=""></Field>
    <Field Name="Description" Type="text" Label="Name" Required="true" Enabled="true" FieldValue="">
    </Field>
    <Field Name="Company" Type="text" Label="Company" Required="true" Enabled="true" FieldValue=""></Field>
    <Field Name="Title" Type="text" Label="Title" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="LeadSource" Type="select" Options="" Label="Lead Source" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Industry" Type="select" Options="" Label="Industry" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="AnnualRevenue" Type="number" Options="" Label="Annual Revenue" Required="false" Enabled="true" FieldValue="" RegEx="/^[-+]?[0-9]+\.[0-9]+$/;"></Field>
    <Field Name="NoOfEmployee" Type="text" Options="" Label="No of employee" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="LeadStatus" Type="select" Options="" Label="Lead Status" Required="false" Enabled="true" FieldValue="">
    </Field>
    <Field Name="AssignedUser" Type="table" TableLink="User" Options="" Label="Assigned User" Required="false" Enabled="true" FieldValue="">
      <Event Name="change">
        <![CDATA[
        ClearAssignedGroup();
        ]]>
      </Event>
      <Event Name="change">
        <![CDATA[
        ClearAssignedGroup();
        ]]>
      </Event>
    </Field>
    <Field Name="AssignedGroup" Type="table" TableLink="Group" Options="" Label="Assigned Group" Required="false" Enabled="true" FieldValue="">
      <Event Name="change">
        <![CDATA[
        document.getElementById("AssignedUser").value="";
      ]]>
      </Event>
    </Field>
  </FieldGroup>
  <FieldGroup Name="Contact Information">
    <Field Name="Email" Type="email" Label="Email" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="SecondaryEmail" Type="email" Label="Secondary Email" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Phone" Type="text" Label="Phone" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Mobile" Type="text" Label="Mobile" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Fax" Type="text" Label="Fax" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Website" Type="url" Label="Website" Required="false" Enabled="true" FieldValue=""></Field>
  </FieldGroup>
  <FieldGroup Name="Address Information">
    <Field Name="Street" Type="textarea" Label="Street" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="POBox" Type="text" Label="PO Box" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="City" Type="text" Label="City" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="State" Type="text" Label="State" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="Country" Type="text" Label="Country" Required="false" Enabled="true" FieldValue=""></Field>
    <Field Name="PostalCode" Type="text" Label="PostalCode" Required="false" Enabled="true" FieldValue=""></Field>
  </FieldGroup>
  <FieldGroup Name="More Information">
    <Field Name="MoreInformation" Type="textarea" Label="More Information" Required="false" Enabled="true" FieldValue=""></Field>
  </FieldGroup>
</CardPageMetadata>